//package com.thd.springboottest.camunda.cfg;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//import org.springframework.jdbc.datasource.DriverManagerDataSource;
//import org.springframework.transaction.PlatformTransactionManager;
//
///**
// * com.thd.springboottest.camunda.cfg.CamundaCfg
// *
// * @author: wanglei62
// * @DATE: 2022/5/26 16:15
// **/
//@Configuration
//public class CamundaCfg {
//    @Bean
//    public DriverManagerDataSource dataSource() {
//        DriverManagerDataSource dataSource = new DriverManagerDataSource();
//
//        dataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
//        dataSource.setUrl("jdbc:mysql://localhost:3306/camunda?characterEncoding=UTF-8&serverTimezone=GMT%2B8&&nullCatalogMeansCurrent=true");
//        dataSource.setUsername("root");
//        dataSource.setPassword("123456");
//
//        return dataSource;
//    }
//
//    @Bean
//    public PlatformTransactionManager transactionManager() {
//        return new DataSourceTransactionManager(dataSource());
//    }
//}
